package com.bootdo.provider.dao;

import com.bootdo.provider.domain.GoodsInfoDO;

import java.util.List;
import java.util.Map;

import com.bootdo.provider.domain.dto.GoodsExcel;
import org.apache.ibatis.annotations.Mapper;

/**
 * 商品表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-04-20 11:24:50
 */
@Mapper
public interface GoodsInfoDao {

	GoodsInfoDO get(Long goodsId);
	
	List<GoodsInfoDO> list(Map<String, Object> map);


	/**
	 * 根据sku，供应商id查询商品
	 * @param map
	 * @return
	 */
	GoodsInfoDO getGoodsBySku(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsInfoDO goodsInfo);
	
	int update(GoodsInfoDO goodsInfo);
	
	int remove(Long goods_id);
	
	int batchRemove(Long[] goodsIds);

	int saveExcel(GoodsExcel goodsInfo);
}
